package com.wgh.product.dto;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品类型数据传输对象
 * 用于API请求和响应
 */
@Data
public class ProductTypeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String icon;
    private Integer sort;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    // 非数据库字段
    private List<ProductTypeDTO> children;
}